tg-me.com/semolina_code_python/87
Last Update:
Конкурс закрывается
Победитель @fraggdiller 🏆
https://www.oklink.com/ru/arbitrum/tx/0x6d0e1196aef639b2b2f6aa75bab962ab9fe626bfee233e15d0ce61ee129f2940
Получилось прикрутить прокси к ethers.js:
import { HttpsProxyAgent } from 'https-proxy-agent';
import { ethers } from 'ethers';
(async () => {
const proxy = '';
const rpc = '';
let fetchRequest: ethers.FetchRequest;
const agent = new HttpsProxyAgent(proxy);
fetchRequest = new ethers.FetchRequest(rpc);
// fetchRequest.setHeader('user-agent', userAgent);
fetchRequest.getUrlFunc = ethers.FetchRequest.createGetUrlFunc({ agent: agent });
let provider = new ethers.JsonRpcProvider(fetchRequest);
console.log(await provider.getBlockNumber());
})();
SemolinaCode | Chat | YouTube | Arbuzers | HowToCode | Prop
BY Semolina Code (Python / TypeScript)
Warning: Undefined variable $i in /var/www/tg-me/post.php on line 283
Share with your friend now:
tg-me.com/semolina_code_python/87